package cn.yangliu.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * the type of com-tool
 *
 * <p>
 * .
 *
 * @author 杨柳
 * @date 2021-09-27
 */
@Entity
@Table(name = "t_setting_detail")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SettingDetail extends AbstractEntity {

    public static final SettingDetail DEFAULT = new SettingDetail("string","string", "manual", "02", "03",
            5, "" ,null, null, null, "exact");


    /**
     * 发送区域显示方式
     */
    private String sendAreaDisplayType;

    /**
     * 接收区域显示方式
     */
    private String receiveAreaDisplayType;

    /**
     * 发送方式 手动 自动
     */
    private String sendType;

    /**
     * 前缀
     */
    private String prefix;

    /**
     * 后缀
     */
    private String suffix;

    /**
     * 间隔
     */
    private Integer interval;

    /**
     * 发送数据
     */
    @Column(columnDefinition="TEXT")
    private String sendData;

    /**
     * 自动回复指令对文件
     */
    private String listenFile;

    /**
     * sheet名称
     */
    private String sheet;


    /**
     * 基本配置id
     */
    @JSONField(serializeUsing= ToStringSerializer.class)
    private Long settingId;

    private String matchType;

}
